/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

	#define _DEF_CCY_CODE
	#define _ZZDEBUG
	#define _PROJ_DC

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

#region Using directives
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

using Muki.Framework.Util;
using Muki.Framework.Business;
using Muki.Framework;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

#endregion

namespace Muki.UserPanel
{
	public class UID02803CM:BLogic
	{
		public UID02803CM()
		{
			objDefault.UID_CODE    ="UID02803C";
		}

		public void Initialize()
		{
			objDefault.ZZLiveBlock = this.ZZLiveBlock;
			objDefault.Trans       = this.Trans;
			objDefault.ZZLOGON_ID  = this.ZZLOGON_ID;

			_Convert.ZZLiveBlock = this.ZZLiveBlock;
			_Convert.Trans       = this.Trans;

			_DataPermission.ZZLiveBlock = this.ZZLiveBlock;
			_DataPermission.Trans       = this.Trans;
			_DataPermission.TABLE_NAME  = "SORMITM";
			_DataPermission.ZZLOGON_ID  = this.ZZLOGON_ID;
			_DataPermission.DataAccessRight();

			_DocsPermission.ZZLiveBlock  = this.ZZLiveBlock;
			_DocsPermission.Trans        = this.Trans;

			_Setting.ZZLOGON_ID = this.ZZLOGON_ID;
			_Setting.Trans      = this.Trans;

		}

		public UID02803CE Verify(UID02803CE _Entity)
		{

						_Entity.SO_DMI=_Entity.SO_DMI.Trim();




					if (Util.IsNullOrEmpty(_Entity.MITEM_NAME01))
					{
						_Entity.Exceptions.Add(new LogisticException("MITEM_NAME01","DataMiss",""));
					}


					if (Util.IsNullOrEmpty(_Entity.MITEM_AMT))
					{
						_Entity.Exceptions.Add(new LogisticException("MITEM_AMT","DataMiss",""));
					}


				return _Entity;
		}

		public List<UID02803CE> Verify(List<UID02803CE> _Entitys)
		{
			List<UID02803CE> _New_Entitys=new List<UID02803CE>();

			foreach (UID02803CE _Entity in _Entitys) 
			{
				_New_Entitys.Add(Verify(_Entity));
			}
			return _New_Entitys;
		}

		public UID02803CE Default(UID02803CE _Entity)
		{

						_Entity.SO_DMI=objDefault.getDefault("SO_DMI",_Entity.SO_DMI);
						_Entity.MITEM_NAME01=objDefault.getDefault("MITEM_NAME01",_Entity.MITEM_NAME01);
						_Entity.MITEM_NAME02=objDefault.getDefault("MITEM_NAME02",_Entity.MITEM_NAME02);
						_Entity.MITEM_AMT=objDefault.getDefault("MITEM_AMT",_Entity.MITEM_AMT);



				return _Entity;
		}

		public List<UID02803CE> Default(List<UID02803CE> _Entitys)
		{
			List<UID02803CE> _New_Entitys=new List<UID02803CE>();
			foreach (UID02803CE _Entity in _Entitys) 
			{
				_New_Entitys.Add(Default(_Entity));
			}
			return _New_Entitys;
		}

		public UID02803CE Search(XEventArgs objEventArgs,UID02803CE _Entity)
		{

			if (_DocsPermission.AccessRight("UID02803C", this.ZZLOGON_ID, "ACCESS")==false)
			{
				_Entity.Exceptions.Add(new LogisticException("UID02803C","NotAccessRight",""));
				return _Entity;
			}

			ZZSQLStatement  _SQLStatement = new ZZSQLStatement();

			_SQLStatement.Trans         = this.Trans;
			_SQLStatement.UID_CODE      = "UID02803C";
			_SQLStatement.ZZLiveBlock   = this.ZZLiveBlock;
			_SQLStatement.Restrict      = objEventArgs.Top+1;
			_SQLStatement.Process("QID02803C");

			ZZQLite oZZQLite = _SQLStatement.oZZQLite;

			oZZQLite.AddXWhereClause("", objEventArgs.Data["T1"], objEventArgs.Data["V1"]);
			oZZQLite.AddXWhereClause("", objEventArgs.Data["T2"], objEventArgs.Data["V2"]);
			oZZQLite.AddXWhereClause("", objEventArgs.Data["T3"], objEventArgs.Data["V3"]);

			oZZQLite.Make();

			//int _AbsolutePage = 0;
			//int _TotalPage    = 0;
			//if (_AbsolutePage == 0)
			//{
			//	_AbsolutePage = oWxfPanel.AbsolutePage;
			//}
			//this.PageSize = oWxfPanel.PageSize;
			//
			//ZZTrace.Warn(ZFILE_NAME, "oZZQLite.Top "+oZZQLite.Top);
			//
			QueryRows RsSORMITM = new QueryRows(this.Trans);
			RsSORMITM.CommandText =  oZZQLite.SQLStatement;;
			RsSORMITM.Top   = 10; // objEventArgs.Top;
			//RsSORMITM.Skip  = (_AbsolutePage-1)*this.PageSize;
			//RsSORMITM.Limit = this.PageSize;
			//RsSORMITM.CountAll=true;
			RsSORMITM.Open();

			Wxf _Wxf  = new Wxf();

			_Wxf.XDeclareStart();
			foreach(AttributeMapping _AttributeMapping in oZZQLite.AttributeMappings)
			{
				_Wxf.XDeclare(_AttributeMapping);
			}
			_Wxf.XDeclareFinal();

			ZZCOLUMN oZZCOLUMN = new ZZCOLUMN();
			oZZCOLUMN.Trans      = this.Trans;

			while (!RsSORMITM.EOF)
			{
				string cPickUpData   = "";
				object cValue;

				_Wxf.AddNew();
				int i=0;
				foreach(AttributeMapping _AttributeMapping in oZZQLite.AttributeMappings)
				{

					cValue = RsSORMITM[i];

					_Wxf[_AttributeMapping.Name] = cValue;

					oZZCOLUMN.getDefault(_AttributeMapping.TableName, _AttributeMapping.ColumnName);

					if (oZZCOLUMN.PK_COLUMN_BIT)
					{
						if (cPickUpData != "")
						{
							cPickUpData = cPickUpData + "|";
						}
						cPickUpData = cPickUpData + ZZGeneral.Base64Encoder(_AttributeMapping.ColumnName + "=" + cValue);
					}
					i++;
				}

				_Wxf.PK_DATA   = cPickUpData;
				_Wxf.Update();

				RsSORMITM.MoveNext();
			}
			RsSORMITM.Close();

			_Entity.Wxf=_Wxf;

			return _Entity;
		}

		public UID02803CE Retrieves(XEventArgs objEventArgs,UID02803CE _Entity)
		{
			if (_DocsPermission.AccessRight("UID02803C", this.ZZLOGON_ID, "ACCESS")==false)
			{
				_Entity.Exceptions.Add(new LogisticException("UID02803C","NotAccessRight",""));
				return _Entity;
			}

			List<UID02803CE> _New_Entitys=new List<UID02803CE>();


			CriteriaRetrieve objRetrieveSORMITMEntity=new CriteriaRetrieve(typeof(SORMITMEntity));

			objRetrieveSORMITMEntity.Top=objEventArgs.Top;
			objCondition=objRetrieveSORMITMEntity.NewCondition();

			bool ZZOrderByAsc=_Setting.getBoolean("ZZOrderByAsc","YES");
			switch (objEventArgs.UDEF_CODE)
			{
				case "FIRST":
					{
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);
						break;
					}
				case "LAST":
					{
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",!ZZOrderByAsc);
						break;
					}
				case "NEXT":
					{
						if (_Entity.P_DATA=="")
						{
							if (ZZOrderByAsc)
							{
								objCondition.GreaterThan("SO_DMI",_Entity.SO_DMI);
							}else{
								objCondition.LessThan("SO_DMI",_Entity.SO_DMI);
							}
						}else{
							if (ZZOrderByAsc)
							{
								objCondition.GreaterThan("SO_DMI",_Entity.P_DATA);
							}else{
								objCondition.LessThan("SO_DMI",_Entity.P_DATA);
							}
						}
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);
						break;
					}
				case "PREV":
					{
						if (ZZOrderByAsc)
						{
							objCondition.LessThan("SO_DMI",_Entity.SO_DMI);
						}else{
							objCondition.GreaterThan("SO_DMI",_Entity.SO_DMI);
						}
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",!ZZOrderByAsc);
						break;
					}
				case "CANCEL":
					{
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);
						break;
					}
				case "LOOKUP":
					{
						ZZTrace.Debug(ZFILE_NAME,"...LOOKUP_COLUMN_NAME...["+objEventArgs.Data["LOOKUP_COLUMN_NAME"]);
						ZZTrace.Debug(ZFILE_NAME,"...LOOKUP_DATA...["+objEventArgs.Data["LOOKUP_DATA"]);
					
						string _LOOUP_COLUMN_NAME=objEventArgs.Data["LOOKUP_COLUMN_NAME"];
						string LOOKUP_DATA=objEventArgs.Data["LOOKUP_DATA"];
						_LOOUP_COLUMN_NAME=_LOOUP_COLUMN_NAME+";";
						
						foreach (string s in _LOOUP_COLUMN_NAME.Split(new char[] { ';' }))
						{
							if (objEventArgs.Data.Count>1)
							{
								Condition OrCondition=objCondition.NewCondition();
								OrCondition.Expression(s,LOOKUP_DATA);
							}else{
								objCondition.Expression(s,LOOKUP_DATA);
							}
						}

						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);
						break;
					}
					
				case "ACTIVETAB":
					{
								if (_Entity.SO_DMI != "")
								{
									objCondition.Equals("SO_DMI", _Entity.SO_DMI);
								}

						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);
						break;
					}
					
				default:
					{
								if (_Entity.SO_DMI != "")
								{
									objCondition.Equals("SO_DMI", _Entity.SO_DMI);
								}
						objRetrieveSORMITMEntity.OrderBy("SO_DMI",ZZOrderByAsc);

						break;
					}
			}



				_DataPermission.AccessCondition(objCondition);

						if (!Util.IsNullOrEmpty(_Entity.SO_NO))
						{
							objCondition.Equals("SO_NO", _Entity.SO_NO);
						}


				List<SORMITMEntity> objSORMITMs=this.Trans.RetrieveEntitys<SORMITMEntity>(objRetrieveSORMITMEntity);

			ZZTrace.Debug(ZFILE_NAME,"...123456...["+objSORMITMs.Count);

			if (objSORMITMs.Count==0 && objEventArgs.UDEF_CODE=="NEXT")
			{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataEOF","DataEOF"));
				return _Entity;
			}else if (objSORMITMs.Count==0 && objEventArgs.UDEF_CODE=="PREV")
			{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataBOF","DataBOF"));
				return _Entity;
			}else if (objSORMITMs.Count==0 && (objEventArgs.UDEF_CODE=="FIRST" || objEventArgs.UDEF_CODE=="LAST") )
			{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataBlank","DataBlank"));
				return _Entity;
			}else if (objSORMITMs.Count==0 && objEventArgs.UDEF_CODE=="LOOKUP")
			{
				/*
				 *if (this.COLUMN_REFX.IndexOf(";")>=0)
				 *{
				 *}else{
				 *    string _T_COLUMN_REFX=this.COLUMN_REFX;
				 *    if (_T_COLUMN_REFX.IndexOf('.') > 0)
				 *    {
				 *        string[] s = _T_COLUMN_REFX.Split(new char[] { '.' });
				 *        _T_COLUMN_REFX=s[1];
				 *    }
				 *    _Entity.Exceptions.Add(new LogisticException(_T_COLUMN_REFX,"DataNotFd","DataBlank"));
				 *    return _Entity;
				 *}
				 */
			}else if (objSORMITMs.Count==0 && objEventArgs.UDEF_CODE=="ACTIVETAB")
			{
				//throw new LogisticException("SO_DMI","Activetab","");
				//this.Default(_Entity);
			}else if (objSORMITMs.Count==0)
			{
				if (objEventArgs.UDEF_CODE=="CANCEL")
				{
					_Entity.DATA_STATUS_CODE="Verified";
				}
				//this.Default(_Entity);
			}else{
				//foreach (SORMITMEntity objSORMITMEntity in objSORMITMs)
				//{
				SORMITMEntity objSORMITMEntity = objSORMITMs[0];
					ZZTrace.MUKI_DEBUG_LOG=true;
						_Entity.SO_NO=objSORMITMEntity.SO_NO;
						_Entity.SO_DMI=objSORMITMEntity.SO_DMI;
						_Entity.MITEM_NAME01=objSORMITMEntity.MITEM_NAME01;
						_Entity.MITEM_NAME02=objSORMITMEntity.MITEM_NAME02;
						_Entity.MITEM_AMT=objSORMITMEntity.MITEM_AMT;

				_Entity.UZADD_DATE     =_Convert.ToDateTimeString(objSORMITMEntity.ZADD_DATE);
_Entity.UZADD_USER     =objSORMITMEntity.ZADD_USER;
_Entity.UZCHG_DATE     =_Convert.ToDateTimeString(objSORMITMEntity.ZCHG_DATE);
_Entity.UZCHG_USER     =objSORMITMEntity.ZCHG_USER;
_Entity.USECURITY_CODE1=objSORMITMEntity.ZSECURITY_CODE1;
_Entity.USECURITY_CODE2=objSORMITMEntity.ZSECURITY_CODE2;
_Entity.USECURITY_CODE3=objSORMITMEntity.ZSECURITY_CODE3;
_Entity.USECURITY_CODE4=objSORMITMEntity.ZSECURITY_CODE4;
_Entity.USECURITY_CODE5=objSORMITMEntity.ZSECURITY_CODE5;
_Entity.USECURITY_CODE6=objSORMITMEntity.ZSECURITY_CODE6;



					_Entity.DATA_STATUS_CODE="Verified";
				//}
			}
				return _Entity;
		}

		public  UID02803CE AddNew(UID02803CE _Entity)
		{

			if (_DocsPermission.AccessRight("UID02803C", this.ZZLOGON_ID, "ADDNEW")==false)
			{
				_Entity.Exceptions.Add(new LogisticException("UID02803C","NotAddnewRight",""));
				return _Entity;
			}

			_Entity.ATVT_CODE="ADDNEW";


				_Entity=this.Verify(_Entity);
			if (_Entity.Exceptions.Count>0)
			{
				return _Entity;
			}
			SORMITMEntity objAddNewEntity=new SORMITMEntity();

			ZZHDKeyLib objZZHDKeyLib=new ZZHDKeyLib();
			objZZHDKeyLib.Trans=this.Trans;

				objZZHDKeyLib.PREFIX_CODE = "UID02803C";
					objZZHDKeyLib.Process();

				_Entity.SO_DMI=objZZHDKeyLib.DT_NO;

					objAddNewEntity.SO_DMI=_Entity.SO_DMI;

			this.Trans.RetrieveEntity(objAddNewEntity);

			if (objAddNewEntity.Verified)
			{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataExist",_Entity.SO_DMI));
				return _Entity;
			}else{

				objAddNewEntity.ZADD_DATE = DateTime.Now;
				objAddNewEntity.ZADD_USER = this.ZZLOGON_ID;

				_DataPermission.TABLE_NAME="SORMITM";
				_DataPermission.DataAccessRight();
				objAddNewEntity.ZSECURITY_CODE1 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE1");
				objAddNewEntity.ZSECURITY_CODE2 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE2");
				objAddNewEntity.ZSECURITY_CODE3 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE3");
				objAddNewEntity.ZSECURITY_CODE4 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE4");
				objAddNewEntity.ZSECURITY_CODE5 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE5");
				objAddNewEntity.ZSECURITY_CODE6 = _DataPermission.ACCESS_AUTH.getValue("SECURITY_CODE6");
				objAddNewEntity.ZSECURITY_RIGHT = _DataPermission.ACCESS_AUTH.getInteger("SECURITY_RIGHT");

				_Entity.UZADD_DATE     =_Convert.ToDateTimeString(objAddNewEntity.ZADD_DATE);
_Entity.UZADD_USER     =objAddNewEntity.ZADD_USER;
_Entity.UZCHG_DATE     =_Convert.ToDateTimeString(objAddNewEntity.ZCHG_DATE);
_Entity.UZCHG_USER     =objAddNewEntity.ZCHG_USER;
_Entity.USECURITY_CODE1=objAddNewEntity.ZSECURITY_CODE1;
_Entity.USECURITY_CODE2=objAddNewEntity.ZSECURITY_CODE2;
_Entity.USECURITY_CODE3=objAddNewEntity.ZSECURITY_CODE3;
_Entity.USECURITY_CODE4=objAddNewEntity.ZSECURITY_CODE4;
_Entity.USECURITY_CODE5=objAddNewEntity.ZSECURITY_CODE5;
_Entity.USECURITY_CODE6=objAddNewEntity.ZSECURITY_CODE6;



							objAddNewEntity.SO_NO=_Entity.SO_NO;
							objAddNewEntity.SO_DMI=_Entity.SO_DMI;
							objAddNewEntity.MITEM_NAME01=_Entity.MITEM_NAME01;
							objAddNewEntity.MITEM_NAME02=_Entity.MITEM_NAME02;
							objAddNewEntity.MITEM_AMT=_Entity.MITEM_AMT;
			}

				this.Trans.SaveChanges(objAddNewEntity);


			_Entity.DATA_STATUS_CODE="Verified";
			return _Entity;
		}

		public  UID02803CE Update(UID02803CE _Entity)
		{
			if (_DocsPermission.AccessRight("UID02803C", this.ZZLOGON_ID, "UPDATE")==false)
			{
				_Entity.Exceptions.Add(new LogisticException("UID02803C","NotUpdateRight",""));
				return _Entity;
			}
			_Entity.ATVT_CODE="UPDATE";


						if (_Entity.SO_DMI=="")
						{
							_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataMiss",""));
						}

			_Entity=this.Verify(_Entity);
			if (_Entity.Exceptions.Count>0)
			{
				return _Entity;
			}

			objRetrieveEntity=new CriteriaRetrieve(typeof(SORMITMEntity));
			objCondition=objRetrieveEntity.NewCondition();

					objCondition.Equals("SO_DMI", _Entity.SO_DMI);


			_DataPermission.UpdateCondition(objCondition);


			EntityObject objEntityObject=this.Trans.RetrieveEntity(objRetrieveEntity);

			if (objEntityObject != null)
			{
				SORMITMEntity objUpdateEntity=(SORMITMEntity)objEntityObject;
				if (objUpdateEntity.Verified)
				{
					objUpdateEntity.ZCHG_DATE=DateTime.Now;
					objUpdateEntity.ZCHG_USER=this.ZZLOGON_ID;

								objUpdateEntity.SO_NO=_Entity.SO_NO;
								objUpdateEntity.SO_DMI=_Entity.SO_DMI;
								objUpdateEntity.MITEM_NAME01=_Entity.MITEM_NAME01;
								objUpdateEntity.MITEM_NAME02=_Entity.MITEM_NAME02;
								objUpdateEntity.MITEM_AMT=_Entity.MITEM_AMT;

						this.Trans.SaveChanges(objUpdateEntity);


						_Entity.UZADD_DATE     =_Convert.ToDateTimeString(objUpdateEntity.ZADD_DATE);
_Entity.UZADD_USER     =objUpdateEntity.ZADD_USER;
_Entity.UZCHG_DATE     =_Convert.ToDateTimeString(objUpdateEntity.ZCHG_DATE);
_Entity.UZCHG_USER     =objUpdateEntity.ZCHG_USER;
_Entity.USECURITY_CODE1=objUpdateEntity.ZSECURITY_CODE1;
_Entity.USECURITY_CODE2=objUpdateEntity.ZSECURITY_CODE2;
_Entity.USECURITY_CODE3=objUpdateEntity.ZSECURITY_CODE3;
_Entity.USECURITY_CODE4=objUpdateEntity.ZSECURITY_CODE4;
_Entity.USECURITY_CODE5=objUpdateEntity.ZSECURITY_CODE5;
_Entity.USECURITY_CODE6=objUpdateEntity.ZSECURITY_CODE6;

					
					_Entity.DATA_STATUS_CODE="Verified";

				}else{
					_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataNotFd",""));
				}
			}else{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataNotFd",""));
			}
			return _Entity;
		}

		public  UID02803CE Delete(UID02803CE _Entity)
		{
			if (_DocsPermission.AccessRight("UID02803C", this.ZZLOGON_ID, "DELETE")==false)
			{
				_Entity.Exceptions.Add(new LogisticException("UID02803C","NotDeleteRight",""));
				return _Entity;
			}
			_Entity.ATVT_CODE="DELETE";

					if (_Entity.SO_DMI=="")
					{
						_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataMiss",""));
						return _Entity;
					}


				objRetrieveEntity=new CriteriaRetrieve(typeof(SORMITMEntity));
			objCondition=objRetrieveEntity.NewCondition();

					objCondition.Equals("SO_DMI", _Entity.SO_DMI);


			_DataPermission.DeleteCondition(objCondition);

			EntityObject objDeleteEntity=this.Trans.RetrieveEntity(objRetrieveEntity);

			if (objDeleteEntity != null)
			{
				if (objDeleteEntity.Verified)
				{
						this.Trans.DeleteEntity(objDeleteEntity);
				}else{
					_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataNotFd",""));
					return _Entity;
				}
			}else{
				_Entity.Exceptions.Add(new LogisticException("SO_DMI","DataNotFd",""));
			}
			return _Entity;
		}

		public UID02803CE UserDefine(XEventArgs cMethod,UID02803CE _Entity)
		{
				return _Entity;
		}


#region Field
		private CriteriaRetrieve objRetrieveEntity;
		private List<EntityObject>  objEntityContainer;
		private Condition        objCondition;
		private ZZDefault        objDefault      = new ZZDefault();
		private ZZDataPermission _DataPermission = new ZZDataPermission();
		private ZZDocsPermission _DocsPermission = new ZZDocsPermission();
		private ZZSetting        _Setting        = new ZZSetting();
		private XConvert         _Convert        = new XConvert();

#endregion


			const  string ZFILE_NAME   ="UID02803CM";
		const  string MUKI_EDITION ="MIN";


	}
}
